package cn.modoumama.common.tools.cipher.md5;

import cn.modoumama.common.tools.cipher.Cipher;

import java.util.Map;

/**
 * MD5加密<br>
 *
 * 创建人：邓强   <br>
 * 创建时间：2018/5/3/003 11:49    <br>
 * @version   V1.0
 */
public class MD5{
  public static Cipher cipher = new Cipher("MD5");

  public static String encode(String input) {
    return cipher.encode(input);
  }

  public static String encode(String input,String charsetName) {
    return cipher.encode(input,charsetName);
  }

  public static String signature(Map<String, String> params, String secret) {
    return cipher.signature(params,secret);
  }
}